<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>新增客户</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	</head>

	<body>
		<%			   
		        request.setCharacterEncoding("UTF-8");
			    String rid = request.getParameter("rid");//在这里设置了一个可传参数
			    if (rid.equals("0")){
		%>
		    <script>
				alert("成功添加！");
				window.location.assign("clientMgr?mid=0");
			</script>
		<%     
		       }
			    else{
	    %>
	                <script>
			    	alert("添加失败！未知原因，请通知管理员");
					history.go(-1);
					</script>
		<%
			    }
	    %>
	</body>
</html>
